package cuit.cx.groupcomment.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Serial entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Serial implements java.io.Serializable {

	// Fields

	private Integer id;
	private Orders orders;
	private String theSerialId;
	private Short isUsed;
	private Short isComment;
	private Set comments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Serial() {
	}

	/** minimal constructor */
	public Serial(Orders orders, String theSerialId, Short isUsed,
			Short isComment) {
		this.orders = orders;
		this.theSerialId = theSerialId;
		this.isUsed = isUsed;
		this.isComment = isComment;
	}

	/** full constructor */
	public Serial(Orders orders, String theSerialId, Short isUsed,
			Short isComment, Set comments) {
		this.orders = orders;
		this.theSerialId = theSerialId;
		this.isUsed = isUsed;
		this.isComment = isComment;
		this.comments = comments;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Orders getOrders() {
		return this.orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public String getTheSerialId() {
		return this.theSerialId;
	}

	public void setTheSerialId(String theSerialId) {
		this.theSerialId = theSerialId;
	}

	public Short getIsUsed() {
		return this.isUsed;
	}

	public void setIsUsed(Short isUsed) {
		this.isUsed = isUsed;
	}

	public Short getIsComment() {
		return this.isComment;
	}

	public void setIsComment(Short isComment) {
		this.isComment = isComment;
	}

	public Set getComments() {
		return this.comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

}